
module DesignersHelper

  def can_register_designer?
    current_user.nil? || !current_user.is_designer?
  end

  def get_designer_avatar designer
    if designer.avatar.present?
      image_tag(designer.avatar.image_url)
    else
      image_tag('new-home/designer-1.png')
    end
  end

end
